package com.fs.controller;

import com.fs.service.OrderGoodsService;
import com.fs.vo.PageResult;
import com.fs.vo.SysResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "订单商品详情-废弃")
@RestController
@RequestMapping("/orderGoods")
@CrossOrigin
public class OrderGoodsController {

    @Autowired
    private OrderGoodsService orderGoodsService;

    @GetMapping("/list")
    public SysResult getList(PageResult pageResult){
        pageResult = orderGoodsService.getList(pageResult);
        return SysResult.success(pageResult);
    }
}
